/* 
 *  2001 (c) Copyright Schlumberger Sema Corp.
 *  This computer program includes Confidential, Proprietary 
 *  Information and is a Trade Secret of Schlumberger Sema Corp.
 *  All use, disclosure, and/or reproduction is prohibited unless
 *  authorized in writing. 
 *  All Rights Reserved.
 *
 *  Written by Petr Sturc <psturc@gemalto.com>, April 2001
 *
 */

package com.gemalto.Kryptik.Gui;


/**
 * This class implements <i>About</i> panel with copyrigth 
 * informations.
 */


import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import com.gemalto.Kryptik.Util.*;
import com.gemalto.Kryptik.*;
import java.io.*;

public class AboutTab extends JPanel {


	/* INI file is not used here, but maybe in future .... */
	public AboutTab(){

		setLayout(new BorderLayout());	 	
		setBorder(new EtchedBorder());
		try {
        		JEditorPane editorPane = new JEditorPane(ClassLoader.getSystemResource("about.html"));
			editorPane.setEditable(false);
        		JScrollPane editorScrollPane = new JScrollPane(editorPane);
        		editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
			add(editorScrollPane); 
		} catch (IOException e) {System.out.println("Cannot find: "+e.getMessage());}
/*

		ImageIcon icon = Util.getIcon("WebWhiteSml.gif");

		JLabel label1=new JLabel("<html><b>Kryptik "+ Main.getVersion()+
					"</b><p>written by Petr Sturc (psturc@gemalto.com)"+
					"<p>Schlumberger Industries<br>"+
					"<b>Special thanks to:</b> Ondrej Borusik (oborusik@gemalto.com)<br>"+
					"main contributor and popularizer<br>"+
					"<b>Cryptix Library </b> (c) 1995-2000 The Cryptix Foundation Ltd.<br>"+
					"<b>BeanShell</b> is a free software project of Pat Niemeyer (pat@pat.net)</font></html>",icon,JLabel.CENTER );
  		label1.setFont(new java.awt.Font ("Arial", 0, 8));


		add(label1, BorderLayout.CENTER);
//		add(label3,BorderLayout.SOUTH);
*/
	}


}
